package fti.uksw.ruang.model;

import android.os.Parcel;
import android.os.Parcelable;

public class Dosen implements Parcelable {

	public final static String TAG = "dosen";

	public final static String TABLEBNAME = "tbdosen";
	public final static String ID = "id";
	public final static String NAMA = "nama";
	public final static String JENISKELAMIN = "jenis_kelamin";
	public final static String EMAIL = "email";
	public final static String NOTELP = "no_telp";

	private int id;
	private String nama;
	private String jenisKelamin;
	private String email;
	private String notelp;

	public Dosen() {
	}

	public Dosen(Parcel in) {
		readFromParcel(in);
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getJenisKelamin() {
		return jenisKelamin;
	}

	public void setJenisKelamin(String jenisKelamin) {
		this.jenisKelamin = jenisKelamin;
	}

	public String getNama() {
		return nama;
	}

	public void setNama(String nama) {
		this.nama = nama;
	}

	public String getNotelp() {
		return notelp;
	}

	public void setNotelp(String notelp) {
		this.notelp = notelp;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeString(nama);
		dest.writeString(jenisKelamin);
		dest.writeString(email);
		dest.writeString(notelp);
	}

	private void readFromParcel(Parcel in) {
		id = in.readInt();
		nama = in.readString();
		jenisKelamin = in.readString();
		email = in.readString();
		notelp = in.readString();
	}

	public static final Parcelable.Creator<Dosen> CREATOR = new Parcelable.Creator<Dosen>() {

		@Override
		public Dosen createFromParcel(Parcel source) {
			return new Dosen(source);
		}

		@Override
		public Dosen[] newArray(int size) {
			return new Dosen[size];
		}
	};
}
